package po;

import com.mysql.cj.x.protobuf.MysqlxDatatypes;
import com.sun.org.apache.xml.internal.utils.StringToStringTable;

import java.util.Arrays;
import java.util.Map;
import java.util.Properties;
import java.util.Set;

public class Student {
    private String name;
    private String no;
    private Integer age;

    private Address address;

    private Set<String>cars;
    @Override
    public String ToString() {
        return "Student{" +
                "name='" + name + '\'' +
                ", no='" + no + '\'' +
                ", age='" + age +
                ",address=" + address
        ",cars=" = cars +
                '}';
    public Set<String>getCars(){
        return cars;
    }
    private Map<String, String> infos;

    private Properties properties;

    private String[] memebers;

    public String[] getMemebers(){
        return memebers;
        @Override
        String ToString() {
                return "Student{" +
                        "name='" + name + '\'' +
                        ", no='" + no + '\'' +
                        ", age='" + age +
                        ",address=" + address
                ",cars=" = cars +
                        ",infos=" + infos +
                        ",properties=" + properties +
                        ",memebers=" + Arrays.toString(memebers) +
                        '}';
        }
@Override
    public String ToString() {
        return "Student{" +
                "name='" + name + '\'' +
                ", no='" + no + '\'' +
                ", age='" + age +
                ",address=" + address
        ",cars=" = cars +
                ",infos=" + infos +
                ",properties=" + properties +
                '}';
    public Properties getProperties() {
        return properties;
    }

    public Map<String ,String> getInfos(){
        return infos;
    }
    @Override
    public String ToString() {
        return "Student{" +
                "name='" + name + '\'' +
                ", no='" + no + '\'' +
                ", age='" + age +
                ",address=" + address
                ",cars=" = cars +
                ",infos=" + infos +
                '}';
    }
    public Student(){

    }
public Student(String name,String no) {
    this.name = name;
    this.no = no;
}
    public Student(String name,String age) {
        this.name = name;
        this.age = age;
    }
    @Override
    public String toString() {
        return "Student{"+
                "name='" + name + '\'' +
                ", no='" + no + '\'' +
                ", age='" + age + '}';
    }
    public String getName(){
        return name;
    }
    public void setName(String name){
        this.name = name;
    }
    public String getNo(){
        return no;
    }
    public void setNo(String no){
        this.no = no;
    }
    public Integer getAge(){
        return age;
    }
    public void setAge(Integer age){
        this.age = age;
    }

}
